package com._520it.crm.mapper;

import com._520it.crm.domain.Owner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OwnerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Owner record);

    Owner selectByPrimaryKey(Long id);

    List<Owner> selectAll();

    int updateByPrimaryKey(Owner record);

    List<Owner> selectPage(@Param("current") int current,
                           @Param("size") int size,
                           @Param("name") String name,
                           @Param("nature") String nature,
                           @Param("papersType") String papersType,
                           @Param("papersNum") String papersNum);

    int selectPageCount(
                        @Param("name") String name,
                        @Param("nature") String nature,
                        @Param("papersType") String papersType,
                        @Param("papersNum") String papersNum);
}